#ifndef __APPLICATION_H
#define __APPLICATION_H
#include <Arduino.h>

// #define MAX_SAND_PARTICLES 10

#ifdef __cplusplus
extern "C"
{
#endif

  typedef enum
  {
    MODE_TIME = 1,
    MODE_DATE,
    MODE_ANIM_RAINING,
    MODE_AUDIO_SPECTURM,
    MODE_TIMER_5MIN,
    MODE_WEATHER,
    MODE_AHT20,
  } ModeType;

#define SWICTH_ANIM_STEP 1

  void mode_init();
  void switch_mode(ModeType);

  void show_time(bool need_sync);
  void show_date(bool need_sync);
  void show_raining_code();
  void show_audio_spectrum();
  void show_timer();
  void show_weather();
  void show_aht20();

#ifdef __cplusplus
}
#endif
#endif